#include "plotcontroller.h"

PlotController::PlotController(PlotData *data, PlotView *view):
        plotdata(data),
        plotview(view)
{
}

PlotController::~PlotController()
{
}

void PlotController::addData(double x, double y, int curve)
{
    plotdata->addData(x, y, curve);
}

void PlotController::addData(double x[], double y[])
{
    plotdata->addData(x, y);
}

void PlotController::addCurve(std::string cur_name)
{
    plotview->addCurve(cur_name);
    plotdata->addCurve(cur_name);
}
